package com.linjiang.protocol;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServlet;

public class DispatcherServlet extends HttpServlet {

    @Override
    public void service(ServletRequest req, ServletResponse res) {
        //交由处理者处理请求
        HttpServerHandler dispatcherServlet = new HttpServerHandler();
        dispatcherServlet.handler(req, res);
    }
}
